<template>
  <el-row type="flex" :justify="justify">
    <el-button
      :type="type"
      :disabled="disabled"
      @click="onClick"
    >{{ text }}</el-button>
  </el-row>
</template>

<script>
export default {
  name: 'PktEventButton',
  props: {
    type: {
      type: String,
      default: null
    },
    text: {
      type: String,
      required: true
    },
    disabled: {
      type: Boolean,
      default: false
    },
    justify: {
      type: String,
      default: 'end'
    },
    onClick: {
      type: Function,
      default: null
    }
  }
}
</script>
